package com.soujiayi.util;

public class Constants {

	public static final String SP_SYSTEM = "system";
	public static final String SP_SYSTEM_ID = "systemid";
	public static final String SP_SESSION_ID = "sessionid";

	public static final String SINA_REDIRECT_URL = "http://m.soujiayi.com/download";
	public static final String SINA_CONSUMER_KEY = "4233025036";
	public static final String SINA_CONSUMER_SECRET = "8532d439e1cffe8476c10c1615685b83";

	public final static String TENCENT_REDIRECT_URL = "http://m.soujiayi.com/download";
	public final static String TENCENT_CLIENT_ID = "801337638";
	public final static String TENCENT_CLIENT_SECRET = "87fc48f0316af5ca62a2dc40def5d833";

	public final static String WEIXIN_APP_ID = "wx80ad74dccc70adb7";

	public static final String DATABASE_NAME = "soujiayi.db";
	public final static String SEARCHKEYHISTORY_TABLE_NAME = "search_key_history";
	public final static String USERINFO_TABLE_NAME = "user_info";
	public final static String SHARE_TABLE_NAME = "share";
	public final static String CITIES_TABLE_NAME = "cities";
	public final static String FAVORITE_TABLE_NAME = "favorite";
	public final static String SKIM_HISTORY_TABLE_NAME = "skim_history";
	public final static String HISTORY_TYPE_TUAN = "2";
	public final static String HISTORY_TYPE_PRODUCT = "1";

	public final static String SEARCH_LIST_ITEM = "item";
	public final static String SEARCH_LIST_CLEAR_HISTORY_ITEM = "clear_history_item";
	public final static String SEARCH_INTENT_KEY = "key";
	public final static String PRODUCT_LIST_PRODCUT_IMAGE_URL = "productImageUrl";
	public final static String PRODUCT_LIST_PRODCUT_NAME = "productName";
	public final static String PRODUCT_LIST_PRODCUT_PRICE = "productPrice";
	public final static String PRODUCT_LIST_PRODCUT_SELLER = "productSeller";
	public final static String PRODUCT_LIST_PRODCUT_SELLER_COUNT = "productSellerCount";
	public final static int PRODUCT_SEARCH_LIMIT = 10;

	public final static String PREFERENCES_NAME_USER = "user_soujiayi";
	public final static String PREFERENCES_NAME_USER_SINA = "user_sina";
	public final static String PREFERENCES_NAME_USER_TENCENT = "user_tencent";

	public final static String IS_NOT_FROM_SETTING = "isNotFromSetting";

	public final static String IS_ERROR = "isError";

	public final static int PRODUCT_SORT_DEFAULT = 0;
	public final static int PRODUCT_SORT_PRICE_ASC = 1;
	public final static int PRODUCT_SORT_PRICE_DESC = 2;
	public final static int PRODUCT_SORT_SALES_VOLUME_DESC = 3;

	public final static int PRODUCT_SELECT_TYPE = 0;
	public final static int PRODUCT_SELECT_ATTRIBUTE = 1;
	public final static int PRODUCT_SELECT_SELLER = 2;
	public final static int PRODUCT_SELECT_PRICE_SCOPE = 3;
	public final static int PRODUCT_SELECT_BRAND = 4;

	public final static String PRODUCT_IS_PARITY = "isParity";
	public final static String PRODUCT_DETAIL_PARITY_MALL = "mall";
	public final static String PRODUCT_DETAIL_PARITY_PRICE = "price";
	public final static String PRODUCT_DETAIL_PARITY_GOTO_CHECK = "goto_check";
	public final static String PRODUCT_URL = "product_url";
	public final static String PRODUCT_NAME = "product_name";
	public final static String PRODUCTS = "products";
	public final static String PRODUCT = "product";
	public final static String PRODUCT_ATTRIBUTE = "product_attribute";
	public final static String PRODUCT_COMPARE_MALL = "product_compare_mall";

	public final static String PRODUCT_PARAETERS = "product_parameters";

	public final static String PRODUCT_IS_CLASSIFY_SHOWED = "isClassfyShowed";

	public final static String PRODUCT_CID = "cid";

	public final static String CATEGORYS = "categorys";
	public final static String SUB_CATEGORYS = "categorys";
	public final static String CATEGORYS_TYPE = "categorys_type";
	public final static int CATEGORYS_TYPE_ROOT = 1;
	public final static int CATEGORYS_TYPE_SUB = 2;

	public final static String SETTINGS_ABOUT_INTENT_KEY = "about_key";
	public final static int SETTINGS_ABOUT_US = 1;
	public final static int SETTINGS_STATEMENT = 2;
	public final static int SETTINGS_CONTACT_US = 3;
	public final static String SETTINGS_USER_KEY = "user";
	public final static String USER = "user";

	public final static int USER_TYPE_SINA = 1;
	public final static int USER_TYPE_TENCENT = 2;
	public final static int USER_TYPE_SOUJIAYI = 3;

	public final static int SKIM_HISTORY_TYPE_PRODUCT = 1;

	public final static String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";

	public final static int USER_STATUS_OFFLINE = 0;
	public final static int USER_STATUS_ONLINE = 1;
	public static final String UPDATE_CHECKURL = "http://m.soujiayi.com/android/update.xml";
	public static final String API_KEY = "6c8f5698726e6835eceedba354ac4ef3";
	public static final String API_SECRET = "47dcf6c408ff66408102971541dac923";
	public static final String BASE_URL = "http://api.soujiayi.com/call/";
	public static final String HTTP_GET = "http-get";
	public static final String HTTP_POST = "http-post";
	public static final String UTF_8 = "UTF-8";
	public static final int EXPIRE_TIME = 7200;
	public static final String HTTP_JSON = "1";
	public static final String HTTP_XML = "2";

	public static final String SESSION_BUILD_ID = "session.build_id";
	public static final String GOODS_SEARCH = "goods.search";
	public static final String GOODS_DETAIL = "goods.detail";
	public static final String GOODS_CATEGORY = "goods.category";
	public static final String TUAN_SEARCH = "tuan.search";
	public static final String TUAN_DETAIL = "tuan.detail";
	public static final String TUAN_CITY = "tuan.city";
	public static final String TUAN_KEYWORD = "tuan.keyword";
	public static final String MEMBER_REGISTER = "member.register";
	public static final String MEMBER_LOGIN = "member.login";
	public static final String MEMBER_INFO = "member.info";
	public static final String MEMBER_LOGOUT = "member.logout";
	public static final String MEMBER_CITY = "member.city";
	public static final String MEMBER_FAV = "member.fav";
	public static final String MEMBER_FAV_ADD = "member.fav_add";
	public static final String MEMBER_FAV_DEL = "member.fav_del";
	public static final String MEMBER_AVATAR = "member.avatar";
	public static final String MEMBER_UPDATE_INFO = "member.update_info";

	public static final String TUAN_CATID_FOOD = "1";
	public static final String TUAN_CATID_FUN = "2";
	public static final String TUAN_CATID_MAKEUP = "3";
	public static final String TUAN_CATID_BUY = "4";
	public static final String TUAN_CATID_SPORT = "5";
	public static final String TUAN_CATID_OTHER = "6";
	public static final int TUAN_INIT_LOAD = 0;
	public static final int TUAN_LOAD_MORE = 1;
	public static final String TUAN_CITY_AREA = "area";
	public static final String TUAN_CITY_CITIES = "cities";
	public static final String TUAN_CITY_CITYNAME = "city_name";
	public static final String TUAN_CITYID = "tuan_cityid";
	public static final int TUAN_CITY_SELECTED = 1;
	public static final int TUAN_SEARCH_SELECTED = 2;
	public static final String TUAN_SEARCH_KEY = "search_key";
	public static final String TUAN_MAIN = "tuan_main";
	public static final String TUAN_DETAIL_URL = "tuan_detail_url";

	public static final String STATUS_NORMAL = "NORMAL";
	public static final String LOG_TAG_HTTP = "HTTP";
	public static final String LOG_TAG_TUAN = "TUAN";

	public static final String STORAGECARD_DIR = "soujiayi";
	public static final String CACHE_DIR = STORAGECARD_DIR + "/cache";
	public static final String CRASH_DIR = STORAGECARD_DIR + "/crash";

	public static final String EMAILSENDER_SMTP_SERVER = "smtp.soujiayi.com";
	public static final String EMAILSENDER_SMTP_PORT = "25";
	public static final String EMAILSENDER_SENDER = "sender@soujiayi.com";
	public static final String EMAILSENDER_SENDER_PASSWORD = "45698h51df981g4";
	public static final String EMAILSENDER_RECEIVER = "cs@soujiayi.com";
	
	public static final String SHARE_SJY_IMAGE = "http://res.soujiae.com/images/mobile/logo180x180.jpg";
}